package com.tjp.subject.application.convert;

import com.tjp.subject.application.entity.SubjectCategoryDTO;
import com.tjp.subject.domain.entity.SubjectCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @program: jz-club
 * @description:
 * @author: aaronTang
 * @create: 2024-02-22
 */
@Mapper
public interface SubjectCategoryBOConverter {
    SubjectCategoryBOConverter INSTANCE = Mappers.getMapper(SubjectCategoryBOConverter.class);

    SubjectCategoryBO DTOToBO(SubjectCategoryDTO subjectCategoryDTO);

    List<SubjectCategoryDTO> BOListToDTOList(List<SubjectCategoryBO> list);

    SubjectCategoryBO convertDTOToCategoryBO(SubjectCategoryDTO subjectCategoryDTO);
}
